1bashThis demonstrates using lsof to list processes occupying TCP port 4000.lsof -itcp:4000external toolslsofnetwork port inspection